* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4CAF50;
}

main {
    margin-top: 80px;
    padding: 2rem 0;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
                url('../images/hero-bg.jpg');
    background-size: cover;
}

.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.plant-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.plant-card:hover {
    transform: translateY(-5px);
}

.plant-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.plant-card h3, .plant-card p {
    padding: 1rem;
}

.plant-card button {
    width: 100%;
    padding: 0.8rem;
    border: none;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.plant-card button:hover {
    background: #45a049;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    margin-top: 2rem;
}

/* 保护措施管理页面样式 */
.treatment-filters {
    margin: 20px 0;
    display: flex;
    gap: 20px;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.treatment-filters select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    min-width: 200px;
    font-size: 1rem;
    color: #424242;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.treatment-filters select:hover {
    border-color: #4CAF50;
}

.treatment-filters select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.treatment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.treatment-card {
    border: none;
    border-radius: 12px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #4CAF50;
}

.treatment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.treatment-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.treatment-type {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.treatment-type[data-type="disease"] {
    background-color: #ffebee;
    color: #c62828;
}

.treatment-type[data-type="pest"] {
    background-color: #fff3e0;
    color: #ef6c00;
}

.treatment-type[data-type="environment"] {
    background-color: #e3f2fd;
    color: #1565c0;
}

.treatment-content {
    margin: 15px 0;
}

.treatment-content p {
    color: #546e7a;
    line-height: 1.6;
    margin-bottom: 15px;
}

.treatment-content strong {
    color: #37474f;
}

.treatment-solutions ul {
    margin: 10px 0;
    padding-left: 20px;
    list-style-type: none;
}

.treatment-solutions li {
    margin: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #546e7a;
}

.treatment-solutions li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-size: 1.5em;
    line-height: 1;
}

.treatment-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.treatment-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.treatment-actions button:first-child {
    background-color: #1976d2;
    color: white;
}

.treatment-actions button:first-child:hover {
    background-color: #1565c0;
}

.treatment-actions button:last-child {
    background-color: #ef5350;
    color: white;
}

.treatment-actions button:last-child:hover {
    background-color: #e53935;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

#solutionInputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#solutionInputs input {
    flex: 1;
}

#solutionInputs button {
    align-self: flex-end;
    padding: 4px 8px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-actions button[type="submit"] {
    background-color: #4caf50;
    color: white;
}

.form-actions button[type="button"] {
    background-color: #9e9e9e;
    color: white;
}

.no-data {
    text-align: center;
    color: #90a4ae;
    padding: 40px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 1.1rem;
}

.no-data::before {
    content: '📋';
    display: block;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .treatment-filters {
        flex-direction: column;
        padding: 15px;
    }
    
    .treatment-filters select {
        width: 100%;
    }
    
    .treatment-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .treatment-card {
        margin: 0 10px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
} 

/* 页面头部样式 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-bottom: 2px solid #f5f5f5;
}

.page-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
}

.add-btn {
    padding: 0.8rem 1.8rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.add-btn::before {
    content: '+';
    font-size: 1.2em;
    font-weight: 400;
}

.add-btn:hover {
    background-color: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

/* 调整容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
} 

/* 查看更多按钮样式 */
.view-more {
    text-align: center;
    margin-top: 2rem;
}

.view-more .btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-more .btn:hover {
    background-color: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

/* 调整保护措施卡片样式 */
.protection-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.protection-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
} 

.featured-article {
    background: #fff;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.article-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.featured-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.featured-article h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.4rem;
}

.read-more {
    color: #4CAF50;
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.featured-article:hover .read-more {
    transform: translateX(5px);
}

.article-content {
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.article-body {
    padding: 20px;
}

.article-body section {
    margin-bottom: 30px;
}

.article-body h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.article-body p {
    color: #34495e;
    line-height: 1.8;
    margin-bottom: 15px;
}

.article-body ul {
    list-style-type: none;
    padding-left: 20px;
}

.article-body li {
    color: #34495e;
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.article-body li:before {
    content: "•";
    color: #4CAF50;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #eee;
}

.modal-footer button {
    padding: 8px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-footer button:hover {
    background: #43a047;
}

/* 文章详情页样式 */
.article-page {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.back-button {
    margin-bottom: 2rem;
}

.back-button a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.back-button a:hover {
    color: #388E3C;
    transform: translateX(-5px);
}

.article-detail {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-detail h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.article-source {
    color: #666;
    font-size: 0.9rem;
}

.article-intro {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-intro p {
    color: #34495e;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article-intro p:last-child {
    margin-bottom: 0;
}

.article-content section {
    margin-bottom: 3rem;
}

.article-content h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4CAF50;
    display: inline-block;
}

.article-content h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
}

.article-content p {
    color: #34495e;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.analysis-points, .solution-points {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.analysis-points ul, .solution-points ul {
    list-style: none;
    padding: 0;
}

.analysis-points li, .solution-points li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #34495e;
    line-height: 1.8;
}

.analysis-points li:before, .solution-points li:before {
    content: "•";
    color: #4CAF50;
    position: absolute;
    left: 0;
    font-weight: bold;
}

@media (max-width: 768px) {
    .article-page {
        padding: 1rem;
    }
    
    .article-detail {
        padding: 1.5rem;
    }
    
    .article-detail h1 {
        font-size: 1.5rem;
    }
} 

.highlight-text {
    background: #e8f5e9;
    padding: 1rem;
    border-left: 4px solid #4CAF50;
    margin: 1rem 0;
    color: #1b5e20;
    font-weight: 500;
}

.article-content strong {
    color: #1976d2;
    font-weight: 600;
}

.point {
    margin-bottom: 2rem;
}

.point:last-child {
    margin-bottom: 0;
}

.point h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.point h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    background: #4CAF50;
    margin-right: 0.5rem;
}

.point p {
    margin-bottom: 1rem;
} 